﻿using MediatR;
using SqlSugar;

namespace S_UserInfor.Api.Application.Commands
{
    public class UserSqlSuageUpdCommands : IRequest<int>
    {
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }
        [SugarColumn(ColumnDescription = "名称", Length = 200)]
        public string? UName { get; set; }
        [SugarColumn(ColumnDescription = "密码", Length = 200)]
        public string? UPwd { get; set; }
        /// <summary>
        /// 创建名称
        /// </summary>
        [SugarColumn(ColumnDescription = "创建名称", Length = 200)]
        public string? CreateBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改名称
        /// </summary>
        [SugarColumn(ColumnDescription = "修改名称", Length = 200)]
        public string? UpdateBy { get; set; }

        /// <summary>
        ///修改时间
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime? UpdateTime { get; set; }

        /// <summary>
        /// 布尔类型
        /// </summary>
        public bool IsDel { get; set; } = false;
    }
}
